package com.sie.service;

import com.sie.entity.Authority;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface AuthorityService {
    Map findByPage(Authority authority,String pageNum,String pageSize,HttpServletRequest request);

    Map findAll(HttpServletRequest request);

    Map deleteById(String id,HttpServletRequest request);

    Map deleteList(List<String> list,HttpServletRequest request);

    Map addAuthority(Authority authority,HttpServletRequest request);

    Map update(Authority authority,HttpServletRequest request);

    Map findByName(String name);

    List<Authority> findAuthByRoleId(String roleId);

    Map setAuthority(String id,List<String> list,HttpServletRequest request);

    Map findParentAuthority(String lv);
}
